import request from '@/utils/request'

// 查询省信息列表
export function listProvince(query) {
  return request({
    url: '/yuan/province/list',
    method: 'get',
    params: query
  })
}

// 查询省信息详细
export function getProvince(provinceId) {
  return request({
    url: '/yuan/province/' + provinceId,
    method: 'get'
  })
}

// 新增省信息
export function addProvince(data) {
  return request({
    url: '/yuan/province',
    method: 'post',
    data: data
  })
}

// 修改省信息
export function updateProvince(data) {
  return request({
    url: '/yuan/province',
    method: 'put',
    data: data
  })
}

// 删除省信息
export function delProvince(provinceId) {
  return request({
    url: '/yuan/province/' + provinceId,
    method: 'delete'
  })
}
